package com.af.system.api.list;

/**
 * @author : zhenyun.su
 * @comment : 访问供应商APi，封装供应商SDK接口，方便调用
 * @since : 2020-12-4
 */

public class AfApiUtils {
    public AfApiUtils(String host) {
        this.host = host;
    }
    private String host;

    public String getUrl(String title, Object... args){
        return String.format("%s/%s", host, AfApiList.getQueryPath(title, args));
    }

    public String getUrl(String title){
        return String.format("%s/%s", host, AfApiList.getQueryPath(title));
    }

    public String getRequestParam(String title, Object... args){
        return String.format("%s/%s", host, AfApiList.getRequestParam(title, args));
    }
    public String getRequestParam(String title){
        return String.format("%s/%s", host, AfApiList.getRequestParam(title));
    }
}
